import moment from "moment"
import 'moment/locale/zh-cn'
// "async" is optional;
// more info on params: https://quasar.dev/quasar-cli/boot-files
export default async ({ app, router, Vue }) => {
  // something to do
  // moment.locale('zh-cn')
  moment.defineLocale('zh-cn', {parentLocale:'zh-cn'})

  moment.updateLocale('zh-cn', {
    week:{
      dow:1
    },
    calendar: {
        sameDay: '[今天] HH:mm',
        nextDay: '[明天] HH:mm',
        nextWeek: '下周 dddd HH:mm ',
        lastDay: '[昨天] HH:mm',
        lastWeek: '[上周] dddd HH:mm ',
        sameElse: 'MM/DD dddd HH:mm'
    }
}

)
  Vue.prototype.$moment = moment
}
